package com.cnblogs.leizia.crm.workbench.service.impl;

import com.cnblogs.leizia.crm.utils.SqlSessionUtil;
import com.cnblogs.leizia.crm.workbench.dao.ContactsDao;
import com.cnblogs.leizia.crm.workbench.domain.Contacts;
import com.cnblogs.leizia.crm.workbench.service.ContactsService;

import java.util.List;

/**
 * 联系人处理器
 *
 * @author leizi
 * @create 2021-04-08 22:40
 */
public class ContactsServiceImpl implements ContactsService {
    @Override
    public List<Contacts> getContactsList(String name) {
        ContactsDao contactsDao = SqlSessionUtil.getSqlSession().getMapper(ContactsDao.class);
        return contactsDao.getContactsList(name);
    }
}
